package org.jl.demo.authority.model.po;

import lombok.Data;
import jakarta.persistence.*;

/**
 * 操作菜单关联Po
 */
@Data
@Entity
@Table(name = "z_operation_menu_relation")
@IdClass(OperationMenuRelationPK.class)
public class OperationMenuRelation {
    /**
     * 操作ID
     */
    @Id
    @Column(name = "operation_id", nullable = false, unique = true)
    private Integer operationId;
    /**
     * 菜单ID
     */
    @Id
    @Column(name = "menu_id", nullable = false, unique = true)
    private Integer menuId;
}